from data.models import Parking
from tests.unit.data.factories import ParkingFactory


def test_create_parking(db):
    parking = ParkingFactory()
    db.session.commit()
    
    assert parking.id is not None
    assert len(db.session.query(Parking).all()) == 1
